package Bean;

import java.math.BigDecimal;

public class OrderItem {
    /*
    create table OrdersItem(
    orderNumber varchar(32),
    FurnName varchar(32) not null ,
    Price decimal(11,2) not null ,
    amount int unsigned not null ,
    sumPrice decimal(11,2) not null
);
     */
    private String  orderNumber;
    private String FurnName;
    private BigDecimal price;
    private Integer amount;
    private BigDecimal sumPrice;
    public OrderItem(){

    }

    public OrderItem(String orderNumber, String furnName, BigDecimal price, Integer amount, BigDecimal sumPrice) {
        this.orderNumber = orderNumber;
        FurnName = furnName;
        this.price = price;
        this.amount = amount;
        this.sumPrice = sumPrice;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public String getFurnName() {
        return FurnName;
    }

    public void setFurnName(String furnName) {
        FurnName = furnName;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public BigDecimal getSumPrice() {
        return sumPrice;
    }

    public void setSumPrice(BigDecimal sumPrice) {
        this.sumPrice = sumPrice;
    }

    @Override
    public String toString() {
        return "OrderItem{" +
                "orderNumber='" + orderNumber + '\'' +
                ", FurnName='" + FurnName + '\'' +
                ", price=" + price +
                ", amount=" + amount +
                ", sumPrice=" + sumPrice +
                '}';
    }
}
